package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_ck_music_room_rank_show_result", desc = "妙音坊百花冲榜日志", autoSave = true, uploadCk = true, dataUpload = true, eventName = "music_show")
public class LogMusicRoomRankShowResult extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动Id", isIndex = true, dataAttribute = "activityId")
    private int ActivityId;
    @FieldTypeAnnotation(desc = "玩家ID", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "第几届", dataAttribute = "music_round")
    private int round;
    @FieldTypeAnnotation(desc = "美女id", dataAttribute = "intimate_name")
    private int beautyId;
    @FieldTypeAnnotation(desc = "皮肤id", dataAttribute = "music_skin")
    private int skinId;
    @FieldTypeAnnotation(desc = "报名类型0免费 1付费", dataAttribute = "music_showtype")
    private int costType;
    @FieldTypeAnnotation(desc = "主题类型", dataAttribute = "music_showadd")
    private int theme;
    @FieldTypeAnnotation(desc = "演出评分", dataAttribute = "music_shownum")
    private long showScore;
    @FieldTypeAnnotation(desc = "获得排名", dataAttribute = "music_showno")
    private int showRank;
    @FieldTypeAnnotation(desc = "获得排名积分", dataAttribute = "music_showscore")
    private long rankScore;
    @FieldTypeAnnotation(desc = "时辰卡积分加成", dataAttribute = "music_showtimeadd")
    private long buffAddScore;
    @FieldTypeAnnotation(desc = "获得奖励", dataAttribute = "music_showreward")
    private String reward;
    @FieldTypeAnnotation(desc = "时间")
    private Date logTime;

    public LogMusicRoomRankShowResult(int activityId, long userId, int round, int beautyId, int skinId, int costType, int theme, long showScore, int showRank, long rankScore, long buffAddScore, String reward) {
        this.ActivityId = activityId;
        this.userId = userId;
        this.round = round;
        this.beautyId = beautyId;
        this.skinId = skinId;
        this.costType = costType;
        this.theme = theme;
        this.showScore = showScore;
        this.showRank = showRank;
        this.rankScore = rankScore;
        this.buffAddScore = buffAddScore;
        this.reward = reward;
        this.logTime = new Date();
    }

    @Override
    public long getUserId() {
        return userId;
    }
}
